package com.imooc.operator;

import java.util.Scanner;

public class LeapYearDemo {

	public static void main(String[] args) {

		System.out.println("请输入一个闰年！");
		Scanner sc = new Scanner(System.in);
		int LeapYear = sc.nextInt();
		boolean generalYear = (LeapYear % 4 == 0) & (LeapYear % 100 != 0);
		boolean notGeneralYear = (LeapYear % 400 == 0);
		if (generalYear | notGeneralYear) {
			System.out.println("闰年！");
		} else {
			System.out.println("不是闰年！");
		}
		sc.close();

	}

}
